// *****************************************************************************************
//
// Copyright (c) 2012. Lin Gui, Ocean University of China and Carneggie Mellon University.
// This code may be used, distribute, or modified only for research purposes or under
// license from Ocean University of China or Carnegie Mellon University. This notice must
//  be retained in all copies.
//
// *****************************************************************************************

/*!
  \file         fullscreenclock.h
  \author       Lin Gui
  \version      1.0
  \date         2012/1/4
  \brief        Header file for fullscreen clock widget
*/

#ifndef SCREENWIDGET_H
#define SCREENWIDGET_H

#include <QtGui/QWidget>
#include <QPainter>
#include <QVBoxLayout>
#include <QTextBrowser>
#include <QString>
#include <QLabel>
#include <QKeyEvent>

class FullScreenClock : public QWidget
{
    Q_OBJECT

public:
    FullScreenClock(QWidget *parent = 0);
    ~FullScreenClock();

    void outputText(QString text);
    void endThis();

protected:
    void keyPressEvent(QKeyEvent * keyEvent);

private:
    QVBoxLayout* layout;
    QTextBrowser* textEdit;
    QLabel* textLabel;

public slots:
    void drawWindow();
};

#endif // SCREENWIDGET_H
